<?php

/**
 * AcreditacionReal form.
 *
 * @package    BecArTe
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class AcreditacionRealForm extends BaseAcreditacionRealForm
{
  /**
   * @see AcreditacionForm
   */
  public function configure()
  {
    parent::configure();
  }

  protected function getUsefullFields()
  {
    return array_merge(parent::getUsefullFields(), array('valor') );
  }
  
  protected function setupInheritance()
  {
    parent::setupInheritance();
    $this->configurarWidget('valor');
    $this->validatorSchema['valor'] =  new sfValidatorPass(array('required' => false));
  }
  
  public function estaVacio()
  {
    return 0 == ($this->isbound() ? $this->getValue('valor') : $this->getObject()->getValor() ) ;
  } 
}
